<section class="Hui-container">
	<div class="Hui-wraper">	
		<div id="a-basics">		
			<h2>基本信息 </h2>
			<h5>*是必填信息</h5>
			<div class="line"></div>
			<br>
				
			<form method="post" action="{:U('Abasics/save')}" name="basics_form" id="basics_form" class="form form-horizontal responsive">	
				<div class="row cl">
					<label class="form-label col-xs-3">*国籍：</label>
					<div class="formControls">
						<div class="radio-box col-xs-my">
							<input type="radio" id="nationality-1" name="nationality" datatype="*" nullmsg="请选择国籍" value="1">
							<label for="nationality-1">中国</label>
						</div>
						<div class="radio-box col-xs-my">
							<input type="radio" id="nationality-2" name="nationality" value="2">
							<label for="nationality-2">其它</label>
						</div>			
					</div>
					<div class="col-xs-5"> </div>
				</div>
				<br>
				<div class="row cl">
					<label class="form-label col-xs-3">*你是否拥有多国国籍：</label>
					<div class="formControls">
						<div class="radio-box col-xs-my">
							<input  type="radio" id="dual_nationality-1" name="dual_nationality" datatype="*" nullmsg="请选择" value="1">
							<label for="dual_nationality-1">是</label>
						</div>
						<div class="radio-box col-xs-my">
							<input type="radio" id="dual_nationality-2" name="dual_nationality" value="2">
							<label for="dual_nationality-2">否</label>
						</div>			
					</div>
					<div class="col-xs-5"> </div>
				</div>
				<br>
				<div class="row cl">
					<label class="form-label col-xs-3">*性别：</label>
					<div class="formControls ">
						<div class="radio-box col-xs-my">
							<input type="radio" id="gender-1" name="gender" datatype="*" nullmsg="请选择性别" value="1">
							<label for="gender-1">男</label>
						</div>
						<div class="radio-box col-xs-my">
 							<input type="radio" id="gender-2" name="gender" value="2">
							<label for="gender-2">女</label>
						</div>
 					</div>	
					<div class="col-xs-5"> </div>	
				</div>
				<br>
				<div class="row cl">				
					<label class="form-label col-xs-3">*出生日期：</label>
					<div class="formControls col-xs-4"> 				
						<input type="text" class="input-text" placeholder="例如：1991-12-30" name="birth" id="birth" datatype="date" nullmsg="出生日期不能为空">		
					</div>
					<div class="col-xs-5"> </div>				
				</div>	
				<br>
				<div class="row cl">
					<label class="form-label col-xs-3">*护照号：</label>
					<div class="formControls col-xs-4">
						<input type="text" class="input-text" placeholder="护照号码" name="passport" id="passport" datatype="passport" nullmsg="护照不能为空">
					</div>
					<div class="col-xs-5"> </div>
				</div>
				<br>
				<div class="row cl">
					<label class="form-label col-xs-3">*身份证号码：</label>
					<div class="formControls col-xs-4">
						<input type="text" class="input-text" placeholder="身份证号码" name="idcard" id="idcard" datatype="idcard" nullmsg="身份证号不能为空">
					</div>
					<div class="col-xs-5"> </div>
				</div>
				<br>
				
				<div class="row cl">		
					<label class="form-label col-xs-3">*你目前的居住地：</label>
					<div class="formControls col-xs-4"> 
						<span class="select-box">
							<select class="select" size="1" id ="residence" name="residence" datatype="*" nullmsg="请选择你的居住地">
								<option value="" selected>请选择你目前的居住地</option>
								<option value="1">Afghanistan</option>
								<option value="2">Albania</option>
								<option value="3">Andorra</option>
								<option value="4">Angola</option>
								<option value="5">Anguilla</option>
								<option value="6">Antarctica</option>
								<option value="7">ANtigua and Barbuda  </option>
								<option value="8">Argentina    </option>
								<option value="9">Armenia    </option>
								<option value="10">Aruba    </option>
								<option value="11">Australia    </option>
								<option value="12">Austria    </option>
								<option value="13">Azerbaijan    </option>
								<option value="14">United Arab Emirates  </option>
								<option value="15">Bahamas    </option>
								<option value="16">Bahrain    </option>
								<option value="17">Bangladesh    </option>
								<option value="18">Barbados    </option>
								<option value="19">Belarus    </option>
								<option value="20">Belize    </option>
								<option value="21">Belgium    </option>
								<option value="22">Benin    </option>
								<option value="23">Bermuda    </option>
								<option value="24">Bhutan    </option>
								<option value="25">Bolivia    </option>
								<option value="26">Bosnia Hercegovina   </option>
								<option value="27">Botswana    </option>
								<option value="28">Bouvet Island   </option>
								<option value="29">Brazil    </option>
								<option value="30">Brunei Darussalam   </option>
								<option value="31">Bulgaria    </option>
								<option value="32">Burkina Faso   </option>
								<option value="33">Burundi    </option>
								<option value="34">Cameroon    </option>
								<option value="35">Canada    </option>
								<option value="36">Cape Verde,Republic of  </option>
								<option value="37">The Central African Republic </option>
								<option value="38">Chile    </option>
								<option value="39">China    </option>
								<option value="40">Christmas Island   </option>
								<option value="41">COCOS Islands   </option>
								<option value="42">Colombia    </option>
								<option value="43">tzerland    </option>
								<option value="44">Congo    </option>
								<option value="45">Cook Island   </option>
								<option value="46">Costa rica   </option>
								<option value="47">Lvory Coast   </option>
								<option value="48">Cuba    </option>
								<option value="49">Cyprus    </option>
								<option value="50">Czech Republic   </option>
								<option value="51">Denmark    </option>
								<option value="52">Djibouti    </option>
								<option value="53">Gominica    </option>
								<option value="54">Grmany    </option>
								<option value="55">Dominica    </option>
								<option value="56">Algeria    </option>
								<option value="57">Ecuador    </option>
								<option value="58">Egypt    </option>
								<option value="59">West Sahara   </option>
								<option value="60">Spain    </option>
								<option value="61">Estonia    </option>
								<option value="62">Ethiopia    </option>
								<option value="63">Fiji    </option>
								<option value="64">Falkland Islands   </option>
								<option value="65">Finland    </option>
								<option value="66">France    </option>
								<option value="67">Micronesia    </option>
								<option value="68">Gabon    </option>
								<option value="69">Equatorial Guinea   </option>
								<option value="70">French Guiana   </option>
								<option value="71">Gambia    </option>
								<option value="72">Georgia    </option>
								<option value="73">Ghana    </option>
								<option value="74">Gibraltar    </option>
								<option value="75">Greece    </option>
								<option value="76">Greenland    </option>
								<option value="77">United Kingdom   </option>
								<option value="78">Grenada    </option>
								<option value="79">Guadeloupe    </option>
								<option value="80">Guam    </option>
								<option value="81">Guatemala    </option>
								<option value="82">Guinea    </option>
								<option value="83">Guinea-Bissau    </option>
								<option value="84">Guyana    </option>
								<option value="85">Croatia    </option>
								<option value="86">Haiti    </option>
								<option value="87">Honduras    </option>
								<option value="88">Hong Kong   </option>
								<option value="89">Hungary    </option>
								<option value="90">Iceland    </option>
								<option value="91">India    </option>
								<option value="92">Indonesia    </option>
								<option value="93">Iran    </option>
								<option value="94">Iraq    </option>
								<option value="95">British Indian Ocean Territory </option>
								<option value="96">Ireland    </option>
								<option value="97">Israel    </option>
								<option value="98">Italy    </option>
								<option value="99">Jamaica    </option>
								<option value="100">Japan    </option>
								<option value="101">Jordan    </option>
								<option value="102">Kazakstan    </option>
								<option value="103">Kenya    </option>
								<option value="104">Kiribati    </option>
								<option value="105">North Korea   </option>
								<option value="106">Korea    </option>
								<option value="107">Cambodia    </option>
								<option value="108">Comoros    </option>
								<option value="109">kuwait    </option>
								<option value="110">Kyrgyzstan    </option>
								<option value="111">Cayman Islands   </option>
								<option value="112">Laos    </option>
								<option value="113">Sri Lanka   </option>
								<option value="114">Latvia    </option>
								<option value="115">Lebanon    </option>
								<option value="116">Lesotho    </option>
								<option value="117">Liberia    </option>
								<option value="118">Libya    </option>
								<option value="119">Liechtenstein    </option>
								<option value="120">Lithuania    </option>
								<option value="121">Luxembourg    </option>
								<option value="122">St. Lucia   </option>
								<option value="123">Macao    </option>
								<option value="124">Malagasy    </option>
								<option value="125">Malawi    </option>
								<option value="126">Malaysia    </option>
								<option value="127">Maldives    </option>
								<option value="128">Mali    </option>
								<option value="129">Malta    </option>
								<option value="130">Marshall Islands   </option>
								<option value="131">Mauritania    </option>
								<option value="132">Mauritius    </option>
								<option value="133">Mexico    </option>
								<option value="134">Moldova    </option>
								<option value="135">Monaco    </option>
								<option value="136">Mongolia    </option>
								<option value="137">Montserrat    </option>
								<option value="138">Morocco    </option>
								<option value="139">Mozambique    </option>
								<option value="140">Burma    </option>
								<option value="141">Northern Mariana Islands  </option>
								<option value="142">Namibia    </option>
								<option value="143">Naura    </option>
								<option value="144">Nepal    </option>
								<option value="145">Netherlands    </option>
								<option value="146">Neutral Zone   </option>
								<option value="147">New Caledonia   </option>
								<option value="148">New Zealand   </option>
								<option value="149">Nicaragua    </option>
								<option value="150">Niger    </option>
								<option value="151">Nigeria    </option>
								<option value="152">Niue    </option>
								<option value="153">Norfolk Island   </option>
								<option value="154">Norway    </option>
								<option value="155">Oman    </option>
								<option value="156">Pakistan    </option>
								<option value="157">French Polynesia   </option>
								<option value="158">Palau    </option>
								<option value="159">Panama    </option>
								<option value="160">Papua,Territory of   </option>
								<option value="161">Paraguay    </option>
								<option value="162">Peru    </option>
								<option value="163">Philippines    </option>
								<option value="164">Pitcairn Islands   </option>
								<option value="165">Poland    </option>
								<option value="166">Portugal    </option>
								<option value="167">Puerto Rico   </option>
								<option value="168">Qatar    </option>
								<option value="169">Romania    </option>
								<option value="170">Russia    </option>
								<option value="171">Rwanda    </option>
								<option value="172">El Salvador   </option>
								<option value="173">St.Helena    </option>
								<option value="174">San Marino   </option>
								<option value="175">Sao Tome and Principe </option>
								<option value="176">Saudi Arabia   </option>
								<option value="177">Senegal    </option>
								<option value="178">Seychelles    </option>
								<option value="179">Sierra leone   </option>
								<option value="180">Singapore    </option>
								<option value="181">Slovakia    </option>
								<option value="182">Slovene    </option>
								<option value="183">Solomon  Islands   </option>
								<option value="184">Somali    </option>
								<option value="185">Sudan    </option>
								<option value="186">Surinam    </option>
								<option value="187">Swaziland    </option>											
							</select>
						</span> 
					</div>
					<div class="col-xs-5"> </div>
				</div>				
				<br>
				<div class="row cl">
					<label class="form-label col-xs-3">*申请贷款项目的大学：</label>
					<div class="formControls col-xs-4"> 
					<span class="select-box">
						<select class="select" size="1" name="university" id="university" datatype="*" nullmsg="请选择大学">
							<option value="" selected>请选择你申请贷款项目的大学</option>
							<option value="1">Aarhus University</option>
							<option value="2">Boston University</option>
							<option value="3">Brown University</option>
							<option value="4">California Institute of Technology (Caltech)</option>
							<option value="5">Carnegie Mellon University</option>
							<option value="6">Columbia University</option>
							<option value="7">Cornell University</option>
							<option value="8">Dartmouth College</option>
							<option value="9">Delft University of Technology</option>
							<option value="10">Duke University</option>
							<option value="11">Durham University</option>
							<option value="12">Ecole normale supérieure, Paris</option>
							<option value="13">Ecole Polytechnique</option>
							<option value="14">EPFL (Ecole Polytechnique Fédérale de Lausanne)</option>
							<option value="15">Erasmus University Rotterdam </option>
							<option value="16">ETH Zurich - Swiss Federal Institute of Technology</option>
							<option value="17">Fudan University</option>
							<option value="18">Georgia Institute of Technology</option>
							<option value="19">Harvard University</option>
							<option value="20">Imperial College London</option>
							<option value="21">Johns Hopkins University</option>
							<option value="22">KAIST - Korea Advanced Institute of Science & Technology</option>
							<option value="23">King's College London</option>
							<option value="24">KU Leuven</option>
							<option value="25">Kyoto University</option>
							<option value="26">Leiden University</option>
							<option value="27">London School of Economics and Political Science (LSE)</option>
							<option value="28">Ludwig-Maximilians-Universität München</option>
							<option value="29">Lund University</option>
							<option value="30">Massachusetts Institute of Technology (MIT) </option>
							<option value="31">McGill University</option>
							<option value="32">McMaster University</option>
							<option value="33">Nanyang Technological University, Singapore (NTU)</option>
							<option value="34">National Taiwan University (NTU)</option>
							<option value="35">National University of Singapore (NUS)</option>
							<option value="36">New York University (NYU)</option>
							<option value="37">Northwestern University</option>
							<option value="38">Osaka University</option>
							<option value="39">Pennsylvania State University</option>
							<option value="40">Princeton University</option>
							<option value="41">Purdue University</option>
							<option value="42">Queen Mary University of London</option>
							<option value="43">Rice University</option>
							<option value="44">Ruprecht-Karls-Universitaet Heidelberg</option>
							<option value="45">Seoul National University</option>
							<option value="46">Stanford University</option>
							<option value="47">Technische Universität München </option>
							<option value="48">The Chinese University of Hong Kong (CUHK)</option>
							<option value="49">The Hong Kong University of Science and Technology</option>
							<option value="50">The Ohio State University</option>
							<option value="51">The University of Edinburgh</option>
							<option value="52">The University of Hong Kong</option>
							<option value="53">The University of Manchester</option>
							<option value="54">The University of Nottingham</option>
							<option value="55">The University of Sheffield</option>
							<option value="56">The University of Tokyo</option>
							<option value="57">The University of Warwick</option>
							<option value="58">Tokyo Institute of Technology</option>
							<option value="59">Trinity College Dublin</option>
							<option value="60">UCL (University College London)</option>
							<option value="61">Université de Montréal </option>
							<option value="62">University of Alberta</option>
							<option value="63">University of Amsterdam</option>
							<option value="64">University of Birmingham</option>
							<option value="65">University of Bristol</option>
							<option value="66">University of British Columbia</option>
							<option value="67">University of California, Berkeley (UCB)</option>
							<option value="68">University of California, Davis</option>
							<option value="69">University of California, Los Angeles (UCLA)</option>
							<option value="70">University of California, San Diego (UCSD)</option>
							<option value="71">University of California, Santa Barbara (UCSB)</option>
							<option value="72">University of Cambridge</option>
							<option value="73">University of Chicago</option>
							<option value="74">University of Copenhagen</option>
							<option value="75">University of Geneva</option>
							<option value="76">University of Glasgow</option>
							<option value="77">University of Groningen</option>
							<option value="78">University of Helsinki</option>
							<option value="79">University of Illinois at Urbana-Champaign</option>
							<option value="80">University of Leeds</option>
							<option value="81">University of Maryland, College Park</option>
							<option value="82">University of Michigan</option>
							<option value="83">University of Minnesota</option>
							<option value="84">University of North Carolina, Chapel Hill</option>
							<option value="85">University of Oxford</option>
							<option value="86">University of Pennsylvania</option>
							<option value="87">University of Pittsburgh</option>
							<option value="88">University of Southampton</option>
							<option value="89">University of Southern California</option>
							<option value="90">University of St Andrews</option>
							<option value="91">University of Texas at Austin</option>
							<option value="92">University of Toronto</option>
							<option value="93">University of Virginia</option>
							<option value="94">University of Washington</option>
							<option value="95">University of Wisconsin-Madison</option>
							<option value="96">University of Zurich</option>
							<option value="97">Uppsala University</option>
							<option value="98">Utrecht University</option>
							<option value="99">Washington University in St. Louis</option>
							<option value="100">Yale University</option>
						</select>
					</span> 
					</div>
					<div class="col-xs-5"> </div>
				</div>	
				<br>			
				<div class="row cl">		
					<label class="form-label col-xs-3">*学院：</label>
					<div class="formControls col-xs-4"> 
						<span class="select-box">
							<select class="select" size="1" id ="department" name="department" datatype="*" nullmsg="请选择所属学院">
								<option value="" selected>请选择你所在的学院</option>
								<option value="1">social sciences & management</option>
								<option value="2">arts and humanities</option>
								<option value="3">natural sciences</option>
								<option value="4">life sciences & medicine</option>
								<option value="5">engineering & technology</option>
								<option value="6">other</option>
							</select>
						</span> 
					</div>
					<div class="col-xs-5"> </div>
				</div>		
				<br>
				<div class="row cl">
					<label class="form-label col-xs-3">*专业：</label>
					<div class="formControls col-xs-4">
						<input type="text" class="input-text" name="major" maxlength="50" id="major" datatype="en-ch" nullmsg="专业不能为空">
					</div>
					<div class="col-xs-5"> </div>
				</div>
				<br>
				<div class="row cl">				
					<label class="form-label col-xs-3">*入学时间：</label>
					<div class="formControls col-xs-4"> 				
						<input type="text" class="input-text" placeholder="例如：2016-08-81" name="enrollment_date" id="enrollment_date" datatype="date" nullmsg="入学时间不能为空">		
					</div>
					<div class="col-xs-5"> </div>				
				</div>				
				<br>
				<div class="row cl">
					<label class="form-label col-xs-3">Cumulative GPA：</label>
					<div class="formControls col-xs-4">						
						<input type="text" class="input-text" placeholder="如：3.8" ignore="ignore" maxlength="6" name="gpa" id="gpa" datatype="decimal">										
						out of 				
						<input type="text" class="input-text" placeholder="如：4.0" ignore="ignore" maxlength="6" name="gpa_total" id="gpa_total" datatype="decimal">					
					</div>
					<div class="col-xs-5"> </div>
				</div>
				<br>
				<div class="row cl">		
					<label class="form-label col-xs-3">贷款币种*：</label>
					<div class="formControls col-xs-4"> 
						<span class="select-box">
							<select class="select" size="1" id ="currency" name="currency" datatype="*" nullmsg="请选择你计划贷款的币种">
								<option value="" selected>请选择你计划贷款的币种</option>
								<option value="1">人民币</option>
								<option value="2">美元</option>
								<option value="3">欧元</option>
								<option value="4">英镑</option>
								<option value="5">日元</option>
								<option value="6">澳元</option>
								<option value="7">港元</option>
								<option value="8">加拿大元</option>
							</select>
						</span> 
					</div>
					<div class="col-xs-5"> </div>
				</div>	
				<br>
				<div class="row cl">
					<label class="form-label col-xs-3">*预约贷款金额（以你贷款的币种为单位）：</label>
					<div class="formControls col-xs-4">
						<input type="text" class="input-text" placeholder="以你选择的贷款币种为单位" maxlength="7" name="loan" id="loan" datatype="integer" nullmsg="请输入金额">
					</div>
					<div class="col-xs-5"> </div>
				</div>	
				<br>
				<div class="row cl">
					<label class="form-label col-xs-3">*学费金额（本学期）：</label>
					<div class="formControls col-xs-4">
						<input type="text" class="input-text" placeholder="以你选择的贷款币种为单位" maxlength="7" name="tuition_total" id="tuition_total" datatype="integer" nullmsg="请输入金额">
					</div>
					<div class="col-xs-5"> </div>
				</div>	
				<br>
				<div class="row cl">
					<label class="form-label col-xs-3">*学费支付日期：</label>
					<div class="formControls col-xs-4">
						<input type="text" class="input-text" placeholder="例如：2016-09-01" name="tuition_date" id="tuition_date" datatype="date" nullmsg="请填写学费支付时间。如果时间未定，请填写预期时间">		
					</div>
					<div class="col-xs-5"> </div>
				</div>	
				<br>	
				<div class="row cl">		
					<label class="form-label col-xs-3">贷款年限*：</label>
					<div class="formControls col-xs-4"> 
						<span class="select-box">
							<select class="select" size="1" id ="loan_duration" name="loan_duration" datatype="*" nullmsg="请选择你计划贷款的年限">
								<option value="" selected>请选择你计划贷款的年限</option>
								<option value="1">1年</option>
								<option value="2">2年</option>
								<option value="3">3年</option>
								<option value="4">4年</option>
								<option value="5">5年</option>
								<option value="6">6年</option>
								<option value="7">7年</option>
							</select>
						</span> 
					</div>
					<div class="col-xs-5"> </div>
				</div>		
				<br>	
				<div class="row cl">
					<label class="form-label col-xs-3">GMAT成绩：</label>
					<div class="formControls col-xs-4">
						<input type="text" class="input-text" maxlength="5" ignore="ignore" name="gmat" id="gmat" datatype="decimal" >
					</div>
					<div class="col-xs-5"> </div>
				</div>
				<br>
				<div class="row cl">
					<label class="form-label col-xs-3">GRE成绩：</label>
					<div class="formControls col-xs-4">
						<input type="text" class="input-text" maxlength="5" ignore="ignore" placeholder="" name="gre" id="gre" datatype="decimal" >
					</div>
					<div class="col-xs-5"> </div>
				</div>
				<br>
				<div class="row cl">
					<label class="form-label col-xs-3">雅思成绩：</label>
					<div class="formControls col-xs-4">
						<input type="text" class="input-text" maxlength="5" ignore="ignore" name="ielts" id="ielts" datatype="decimal">
					</div>
					<div class="col-xs-5"> </div>
				</div>
				<br>
				<div class="row cl">
					<label class="form-label col-xs-3">托福成绩：</label>
					<div class="formControls col-xs-4">
						<input type="text" class="input-text" maxlength="5" ignore="ignore" name="toefl" id="toefl" datatype="decimal">
					</div>
					<div class="col-xs-5"> </div>
				</div>
				<br>
				<div class="row cl">
					<div class="col-xs-10 col-xs-offset-5">
						<input class="btn btn-primary basics-button" type="submit" value="&nbsp;&nbsp;保存&下一步&nbsp;&nbsp;">
					</div>
				</div>
			</form>	
		</div>
	</div>
</section>

<script>

$(function(){
	 
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});
	$("#basics_form").Validform({
		tiptype:2
	});
	
	var obj1 = document.getElementsByName('gender');
	for(i = 0; i < obj1.length; i++){  
	    if(obj1[i].value == "{$data.gender}") 
	        obj1[i].checked = true;       
	}
	var obj2 = document.getElementsByName('dual_nationality');
	for(i = 0; i < obj2.length; i++){  
	    if(obj2[i].value == "{$data.dual_nationality}") 
	        obj2[i].checked = true;       
	}
	var obj3 = document.getElementsByName('nationality');
	for(i = 0; i < obj3.length; i++){  
	    if(obj3[i].value == "{$data.nationality}") 
	        obj3[i].checked = true;       
	}
	for(var i=0;i<document.getElementById('department').options.length;i++) {  
        if(document.getElementById('department').options[i].value =="{$data.department}") {  
        	document.getElementById('department').options[i].selected = true;  
            break;  
        }  
    } 
	for(var i=0;i<document.getElementById('loan_duration').options.length;i++) {  
        if(document.getElementById('loan_duration').options[i].value =="{$data.loan_duration}") {  
        	document.getElementById('loan_duration').options[i].selected = true;  
            break;  
        }  
    } 
	for(var i=0;i<document.getElementById('currency').options.length;i++) {  
        if(document.getElementById('currency').options[i].value =="{$data.currency}") {  
        	document.getElementById('currency').options[i].selected = true;  
            break;  
        }  
    } 
	for(var i=0;i<document.getElementById('university').options.length;i++) {  
        if(document.getElementById('university').options[i].value =="{$data.university}") {  
        	document.getElementById('university').options[i].selected = true; 
            break;  
        }  
    }
	for(var i=0;i<document.getElementById('residence').options.length;i++) {  
        if(document.getElementById('residence').options[i].value =="{$data.residence}") {  
        	document.getElementById('residence').options[i].selected = true;  
            break;  
        }  
    }
	document.getElementById('birth').value="{$data.birth}";
	document.getElementById('passport').value="{$data.passport}";
	document.getElementById('idcard').value="{$data.idcard}";
	document.getElementById('residence').value="{$data.residence}";
	document.getElementById('major').value="{$data.major}";
	document.getElementById('enrollment_date').value="{$data.enrollment_date}";
	document.getElementById('tuition_date').value="{$data.tuition_date}";
	document.getElementById('tuition_total').value="{$data.tuition_total}";
	document.getElementById('loan').value="{$data.loan}";
	if("{$data.gre}">0)
		 document.getElementById('gre').value="{$data.gre}";
	if("{$data.gmat}">0)
		 document.getElementById('gmat').value="{$data.gmat}";
	if("{$data.toefl}">0)
		 document.getElementById('toefl').value="{$data.toefl}";	 
	if("{$data.gre}">0)
		 document.getElementById('ielts').value="{$data.ielts}"; 
	if("{$data.gpa}">0)
		 document.getElementById('gpa').value="{$data.gpa}";
	if("{$data.gpa_total}">0)
		 document.getElementById('gpa_total').value="{$gpa_total}";
});
</script>	
		